/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.adcc.service;

import java.util.List;
import vn.adcc.model.Customer;

/**
 *
 * @author duccom
 */
public interface CustomerManager extends GenericManager<Customer, Integer>{

    /**
     *
     * @return all customers from database
     */
    public List<Customer> getCustomers();

    /**
     *
     * @param query the query string
     * @return list of customers based on query string
     */
    public List<Customer> search(String query);

    /**
     *
     * @param customer customer to be saved.
     * @return saved customer.
     */
    public Customer save(Customer customer);

}
